<?php 



$colname_tampil_member = "-1";

if (isset($_GET['user'])) {

  $colname_tampil_member = $_GET['user'];

}

mysql_select_db($database_sepolwan_connect, $sepolwan_connect);

$query_tampil_member = sprintf("SELECT * FROM memberdb WHERE nama_user = %s", GetSQLValueString($colname_tampil_member, "text"));

$tampil_member = mysql_query($query_tampil_member, $sepolwan_connect) or die(mysql_error());

$row_tampil_member = mysql_fetch_assoc($tampil_member);

$totalRows_tampil_member = mysql_num_rows($tampil_member);



mysql_select_db($database_sepolwan_connect, $sepolwan_connect);

$query_tl_user = "SELECT * FROM dinding_tl WHERE me = '".$row_tampil_member['id']."' ORDER BY id DESC";

$tl_user = mysql_query($query_tl_user, $sepolwan_connect) or die(mysql_error());

$row_tl_user = mysql_fetch_assoc($tl_user);

$totalRows_tl_user = mysql_num_rows($tl_user);

?>

<?php if ($totalRows_tampil_member > 0) { // Show if recordset not empty ?>

  <div style="border:1px solid #CCC; width:98%; padding:1%; background:#F5F5F5"><span id="judul"><strong><a href="<?php echo $base; echo $_GET['user'] ?>">Timeline</a></strong></span></div>

  <?php } // Show if recordset not empty

  else { echo "<div align='center'><strong>Halaman Kosong</strong></div>";

  }

  

   ?>

<p><?php if ($row_tampil_member['email']==$_SESSION['MM_Username'] && $_SESSION['MM_Username']<>NULL) { ?>
<?php include "tambah/post.php" ?>
<?php } ?><p align="center"><?php if ($_GET['subpp']=='tlfollowers') { ?><a href="<?php echo $base.$_GET['user'] ?>"><?php } ?>Timline Public<?php if ($_GET['subpp']=='tlfollowers') { ?></a><?php } ?> | <?php if ($_GET['subpp']<>'tlfollowers') { ?><a href="<?php echo $base.$_GET['user'] ?>/tlfollowers"><?php }?>Timeline Followers<?php if ($_GET['subpp']<>'tlfollowers') { ?></a><?php }?></p>
<div id="wrapper">
        <div id="pageData"></div>
        </div>
<?php

mysql_free_result($tampil_member);



mysql_free_result($tl_user);

?>

